<template>
	<view class="main">
		<view class="box" v-for="(item,index) in list" :key="index" @click="skip(`/pages/expert/expertDetail?uid=${item.uid}`)">
			<view class="image">
				<image :src="item.personalImg" />
			</view>
			<view class="info">
				<view>{{ item.name }}({{ item.position }})</view>
				<view>{{ item.organName }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import * as me from '../../common/api/me.js'
export default {
	data() {
		return {
			list:[]
		}
	},
	onLoad(){
		this.getList();
	},
	methods: {
		getList(){
			let param = {
					openId:uni.getStorageSync('openid_key')
				};
			me.listFollow(param).then(res => {
				this.list = res.data.data;
			})
		},
		skip(url){
			uni.navigateTo({
				url:url
			});
		},
	}
}
</script>

<style lang="scss" scoped>
.main{
	padding:10rpx 26rpx;
	font-size: 28rpx;
	.box{
		margin-top:15rpx;
		display: flex;
		.image{
			width: 100rpx;
			height: 100rpx;
			overflow: hidden;
			image{
				width: 100rpx;
				height: 100rpx;
			}
		}
		.info{
			padding-left:10rpx;
			flex:1;
		}
	}
}
</style>